package com.yzl.springboot.springboot.service.impl;

import com.yzl.springboot.springboot.domain.Video;
import com.yzl.springboot.springboot.mapper.VideoMapper;
import com.yzl.springboot.springboot.service.VideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Title: VideoServiceImpl
 * @Author: 姚志立
 * @Description:
 * @Date: 2020/5/24 9:07
 * @Version: 1.0
 */
@Service
//@Component 通用的注解
public class VideoServiceImpl implements VideoService {
    @Autowired
    private VideoMapper videoMapper;
    @Override
    public List<Video> listVideo() {
        return videoMapper.listVideo();
    }
}
